package com.hangim.pce.model;

import com.hangim.pce.common.domain.IdEntity;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.util.Date;

/**
 * <p>
 * 药品规则表
 * </p>
 *
 * @author hongjiliang
 * @since 2018-10-19
 */
@TableName("sys_drug_rule")
public class SysDrugRule extends IdEntity {

    /**
     * 药品ID
     */
    @TableField("drug_id")
    private Long drugId;
    /**
     * 药品名称
     */
    @TableField("drug_name")
    private String drugName;
    /**
     * 规则类型 1-用法 2-人群
     */
    private Integer type;
    /**
     * 规则等级 1-禁用 2-慎用 3-可用...
     */
    private Integer level;
    /**
     * 类型目标名称 如type=1 此处可能有 皮内注射
     */
    private String name;
    /**
     * 规则描述
     */
    private String description;
    /**
     * 状态
     */
    private Boolean active;
    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;
    /**
     * 创建人
     */
    @TableField("created_by")
    private Long createdBy;
    /**
     * 更新时间
     */
    @TableField("updated_at")
    private Date updatedAt;
    /**
     * 更新人
     */
    @TableField("updated_by")
    private Long updatedBy;

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getActive() {
        return active;
    }

    public void setActive(Boolean active) {
        this.active = active;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Long getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Long createdBy) {
        this.createdBy = createdBy;
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }


    @Override
    public String toString() {
        return "SysDrugRule{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", type=" + type +
                ", level=" + level +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", active=" + active +
                ", createdAt=" + createdAt +
                ", createdBy=" + createdBy +
                ", updatedAt=" + updatedAt +
                ", updatedBy=" + updatedBy +
                '}';
    }
}
